package com.atguigu.springcloud.dao;

import com.atguigu.springcloud.entities.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @PROJECT_NAME: cloud2020
 * @DESCRIPTION:
 * @Author: csc
 * @DATE: 2023/4/6 9:44
 */
@Mapper
public interface OrderDao
{
    /**新建订单*/
    void create(Order order);

    /**修改订单状态,从零改为1*/
    int update(@Param("userId") Long userId,@Param("status")Integer status);



}
